package top.superxuqc.checkinconsumer;


import com.alibaba.fastjson.JSON;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import top.superxuqc.checkincqupt.api.CheckInService;
import top.superxuqc.checkincqupt.domain.ApiResult;

import java.util.List;

@Controller
public class controller {

    @DubboReference
    CheckInService service;
    @RequestMapping("/check")
    @ResponseBody
    public String check(String openId,String xh,String address){
        System.out.println("111");
        ApiResult<List<String>> result = service.startCheckIn(openId, xh, address);
        System.out.println();
        return JSON.toJSONString(result);
    }

}
